import Vue from "vue"

//判断是否有权限
Vue.mixin({
    methods: {
        hasAuth(perm) {
            let authority = this.$store.state.menus.permList
            return authority.indexOf(perm) > -1
        }
    }
})
